/*    */ package nc.ui.so.m30.billui.model;
/*    */ 
/*    */ import nc.bs.framework.common.NCLocator;
/*    */ import nc.itf.so.m30.self.ISaleOrderMaintainApp;
/*    */ import nc.ui.pubapp.uif2app.actions.pagination.IPaginationInitQuery;
/*    */ import nc.ui.querytemplate.querytree.IQueryScheme;
/*    */ import nc.ui.scmpub.page.model.IBillPageQuery;
/*    */ import nc.vo.pub.BusinessException;
/*    */ import nc.vo.pubapp.pagination.PaginationQueryVO;
/*    */ import nc.vo.pubapp.pattern.exception.ExceptionUtils;
/*    */ import nc.vo.scmpub.page.PageQueryVO;
/*    */ import nc.vo.so.m30.entity.SaleOrderVO;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class SaleOrderPageService
/*    */   implements IBillPageQuery, IPaginationInitQuery
/*    */ {
/*    */   public Object[] queryObjectByPks(String[] pks)
/*    */     throws BusinessException
/*    */   {
/* 25 */     ISaleOrderMaintainApp service = (ISaleOrderMaintainApp)NCLocator.getInstance().lookup(ISaleOrderMaintainApp.class);
/*    */     
/* 27 */     SaleOrderVO[] bills = null;
/*    */     try {
/* 29 */       bills = service.queryM30App(pks);
/*    */     } catch (BusinessException ex) {
/* 31 */       ExceptionUtils.wrappException(ex);
/*    */     }
/* 33 */     return bills;
/*    */   }
/*    */   
/*    */   public Integer getPageSize()
/*    */   {
/* 38 */     return Integer.valueOf(10);
/*    */   }
/*    */   
/*    */ 
/*    */   public PaginationQueryVO queryPaginationQueryVO(String condition, Integer billcount, Object... userobj)
/*    */     throws BusinessException
/*    */   {
/* 45 */     return null;
/*    */   }
/*    */   
/*    */   public PageQueryVO query(IQueryScheme scheme)
/*    */   {
/* 50 */     ISaleOrderMaintainApp service = (ISaleOrderMaintainApp)NCLocator.getInstance().lookup(ISaleOrderMaintainApp.class);
/*    */     
/* 52 */     PageQueryVO page = null;
/*    */     try {
/* 54 */       page = service.queryM30App(scheme);
/*    */     } catch (BusinessException ex) {
/* 56 */       ExceptionUtils.wrappException(ex);
/*    */     }
/* 58 */     return page;
/*    */   }
/*    */ }

